-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Report error for native PDB limit #75293
Conversation
50985e8
to
490b67a
Compare
methodBody.MethodDefinition, | ||
blob.Length, | ||
limit)); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: the name of the attribute is part of the limit length. Is that included in the blob
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, the name is not included in the blob
. You are right the limit is wrong now, will fix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you put the check here vs. inside DefineCustomMetadata
? Yes this is the only call today but in the future if we added more calls we wouldn't get this protection.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right, it seems better to move the check into DefineCustomMetadata. I originally chose this location because it's where I have access to the method name, but I can probably pass that down or rethrow an exception...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done with review pass (iteration 1). Only minor questions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM Thanks (iteration 2) with a minor comment suggestion
@dotnet/roslyn-compiler @jaredpar for a second review, thanks |
Resolves #75237.